home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-15 / phbench.zip / MAKEFILE < prev    next >
Text File  |  1993-01-04  |  1KB  |  37 lines

  1. #
  2. # Makefile for the Plum-Hall benchmarks package
  3. #              by Eric S. Raymond (eric@snark.uu.net)
  4. #
  5. # Your system type for the benchmark list (do *not* string-quote it)
  6. SYSTYPE = AT&T 6386/375
  7.  
  8. # Ditto, if your headers define CLOCKS_PER_SEC
  9. CFLAGS = -DCLOCKS_PER_SEC=60
  10.  
  11. # Comment this out if you have ANSI clock(3)
  12. CLOCK = clock.o
  13.  
  14. bench.out: nbench obench
  15.        nbench 1 "$(SYSTYPE) (no -O)" >bench.out
  16.        obench 1 "$(SYSTYPE) (-O)" >>bench.out
  17.  
  18. # optimizer off
  19. nbench.o: benches.c
  20.        $(CC) $(CFLAGS) -c benches.c
  21.        mv benches.o nbench.o
  22. nbench: nbench.o f3.o $(CLOCK)
  23.        cc -o nbench nbench.o f3.o $(CLOCK) -lm
  24.  
  25. # optimizer on
  26. obench.o: benches.c
  27.        $(CC) -O $(CFLAGS) -c benches.c
  28.        mv benches.o obench.o
  29. obench: obench.o f3.o $(CLOCK)
  30.        cc -o obench obench.o f3.o $(CLOCK) -lm
  31.  
  32. clean:
  33.        rm -f [no]bench *.o bench.shar
  34.  
  35. bench.shar:
  36.        shar READ.ME Makefile *.c *.out *.bat *.sh cr-lf n-n bench.tbl ARTICLE >bench.shar
  37.